import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int cnt=1;
        int x=(int)(Math.random()*100+1);
        int y=sc.nextInt();
        while(x!=y){
            if(x<y){
                System.out.println("猜的数大了，请重新输入：");
            }else if(x>y){
                System.out.println("猜的数小了，请重新输入：");
            }
            y=sc.nextInt();
            cnt++;
        }
        System.out.println("猜数正确，共猜了"+cnt+"次");
    }
}